package lormi.meipin.service.impl;


import lormi.meipin.entity.WeiXinCode;
import lormi.meipin.service.BaseService;
import lormi.meipin.service.IInvitationLogService;
import org.springframework.stereotype.Service;

@Service
public class InvitationLogService extends BaseService implements IInvitationLogService{

	@Override
	public String getCode(String openID) {
		WeiXinCode weiXinCode = invitationLogMapper.selectWeiXinCode(openID);
		if (weiXinCode!=null && weiXinCode.getCode()!=null) {
			return weiXinCode.getCode();
		}
		return "null";
	}

	
}
